package com.mjsoftking.aopapp.activity;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.mjsoftking.aopapp.Constants;
import com.mjsoftking.aopapp.R;
import com.mjsoftking.aopapp.aop.anno.ClickLimit;

public class MainActivity2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        findViewById(R.id.text2).setOnClickListener(new View.OnClickListener() {

            @ClickLimit
            @Override
            public void onClick(View v) {
                //TOKEN 赋值并返回
                Constants.TOKEN = "1234567890";
                finish();
            }

        });
    }
}